﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.IO;
using System.Text;
using System.Drawing;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using EnvironmentManagerSystem.BLL;
using EnvironmentManagerSystem.MODE;

namespace EnvironmentManagerSystem.EvaluationUnitManager
{
    public partial class Image : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ////获取虚拟目录的物理路径。 
            //string path = Server.MapPath("..\\EvaluationUnitManager");
            ////获取图片文件的二进制数据。
            //byte[] datas = System.IO.File.ReadAllBytes(path + "\\p_large_3uqd_3d4e000195a05c6f.jpg");
            ////将二进制数据写入到输出流中。
            //Response.OutputStream.Write(datas, 0, datas.Length);

            //if (Request.QueryString["UnitID"] != null || Request.QueryString["UnitID1"] != null)
            //{
            //    EvaluationUnitData model = EvaluationUnit.GetModel(Request.QueryString["UnitID"] == null ? Convert.ToInt32(Request.QueryString["UnitID1"]) : Convert.ToInt32(Request.QueryString["UnitID"]));
            //    if (Request.QueryString["UnitID"] != null)
            //    {
            //        Response.OutputStream.Write(model.QualificationFile, 0, model.QualificationFile.Length);
            //    }
            //    else
            //    {
            //        Response.OutputStream.Write(model.AllSigned, 0, model.AllSigned.Length);
            //    }
            //}
            //else if (Request.QueryString["LeaderID"] != null || Request.QueryString["LeaderID1"] != null)
            //{
            //    ProjectLeaderData model = ProjectLeader.GetModel(Request.QueryString["LeaderID"] == null ? Convert.ToInt32(Request.QueryString["LeaderID1"]) : Convert.ToInt32(Request.QueryString["LeaderID"]));
            //    if (Request.QueryString["LeaderID"] != null)
            //    {
            //        Response.OutputStream.Write(model.CertificatePic, 0, model.CertificatePic.Length);
            //    }
            //    else
            //    {
            //        Response.OutputStream.Write(model.AppointmentCardPic, 0, model.AppointmentCardPic.Length);
            //    }
            //}
        }
    }
}
